package com.tianjin.design.interpreter;

public class EnglishToChineseInterpreter extends LanguageInterpreter{
    @Override
    public Context interpreter(Context context) {
        if ("hello".equals(context.getInput())) {
            context.setOutput("你好");
        } else if ("help".equals(context.getInput())) {
            context.setOutput("救命");
        }

        return context;
    }
}
